//
//  DetailDynNoticeTableViewCell.m
//  ChatDemo-UI2.0
//
//  Created by 薛子 on 16/4/3.
//  Copyright © 2016年 薛子. All rights reserved.
//

#import "DetailDynNoticeTableViewCell.h"

@implementation DetailDynNoticeTableViewCell
@synthesize timeLabel;
@synthesize titleLabel;
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        CGFloat x = 20;
        CGFloat top = 15;
        CGFloat w = 300;
        CGFloat h = 20;
        
        titleLabel=[[UILabel alloc]initWithFrame:CGRectMake(x, top, [UIScreen mainScreen].bounds.size.width-40, 40)];
        titleLabel.numberOfLines=2;
        titleLabel.font=[UIFont systemFontOfSize:16];
        titleLabel.textColor=RGBACOLOR(85, 85, 85, 1);
        [self.contentView addSubview:titleLabel];
        
        timeLabel=[[UILabel alloc]initWithFrame:CGRectMake(x, titleLabel.frame.origin.y+titleLabel.frame.size.height, w, h)];
        timeLabel.textColor=RGBACOLOR(85, 85, 85, 1);
        timeLabel.font=[UIFont systemFontOfSize:16];
        [self.contentView addSubview:timeLabel];
    }
    
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
